function doSubmit(){
    if (!formCheck().form()) {
        return;
    }
    var url=base+"/personal/uc/changePassword";
    $.post(url, $("#editForm").serialize(), function (data) {
        $.messager.alert0({selector: "#editAlert", type: data.code, html: data.message});

        if (data && data.code == 'SUCCESS') {
            $('#editForm')[0].reset()
        }else{
           var obj= $('#editForm').find("input[name=password]");
            $(obj).trigger("focus");
            $(obj).val("");
        }
    }, "json");

}


function formCheck() {
    return $('#editForm').validate({
        rules: {
            password: {
                required:true
            },
            newPassword: {

                
                required:true
            },
            confirmNewPassword: {

               
                equalTo:'#newPassword',
                required:true
            }

        }
    });
}
